package com.learn.controller;

import com.learn.service.OneService;
import com.learn.service.TwoService;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ServiceController {

    @Autowired
    private BeanFactory beanFactory;

    @Autowired
    private ApplicationContext applicationContext;

    @Autowired
    private OneService oneService;

    @Autowired
    private TwoService twoService;

    @GetMapping("/a")
    public void println() {

        oneService.println();
    }

}
